package machine.bean;

import lombok.Data;

/**
 * 消息实体
 *
 * @author zhanghui145
 * @date 2021/12/24 18:00
 * @since 1.0.0
 */
@Data
public class Msg {

    /**
     * 消息
     */
    private String raw_message;

    /**
     * 自己的id
     */
    private Integer self_id;

    /**
     * 消息id
     */
    private Integer message_id;

    /**
     * 消息类型，group群，private私聊
     */
    private String message_type;

    /**
     * 目标，群消息若不@则为null
     */
    private Integer target_id;

    /**
     * 群id
     */
    private Integer group_id;

    private String sub_type;

    private String user_id;

    private String post_type;

    private Integer time;

    private Integer font;

    private Sender sender;

    @Data
    public static class Sender {
        private String sex;

        /**
         * 发送人
         */
        private Integer user_id;

        private String nickname;

        private Integer age;
    }
}
